<template>
  <div class="test">
    <el-input v-model="obj.test"></el-input>
    <el-input v-model="obj.test2"></el-input>
    <el-button @click="handleEqual">对比</el-button>
  </div>
</template>

<script setup>
  import { reactive } from 'vue'

  const obj = reactive({
    test: '1',
    test2: '1',
  })

  function handleEqual() {
    console.log(obj.test === obj.test2)
  }
</script>

<style scoped></style>
